#include <bits/stdc++.h>

using namespace std;

void div(int n, vector<int> &v)
{
    for (int i = 2; i <= n / i; ++i)
    {
        while (n % i == 0)
        {
            n /= i;
            v.push_back(i);
        }
    }
    if (n > 1)
    {
        v.push_back(n);
    }
}

int main()
{
    int n;
    while (cin >> n)
    {
        vector<int> v;
        div(n, v);
        cout << n << " "
             << "="
             << " ";
        for (int i = 0; i < v.size() - 1; ++i)
        {
            cout << v[i];
            cout << " * ";
        }
        cout << v[v.size() - 1] << endl;
    }
}